/**
 *
 */
package com.ybkj.daijia.server.service.impl;


import com.ybkj.daijia.server.service.MemberConsumedRecordService;
import org.springframework.stereotype.Service;

/**
 * @author Shine
 *
 */
@Service
public class DefaultMemberConsumedRecordService implements MemberConsumedRecordService {

//	public Page<PassengerAccount> queryAll(Long memberId,Date start,Date end) {
//		
//		Pageable pageable = new PageRequest(Pager.getPage(), Pager.getLimit());
//		
//		Map<String, Object> params = new HashMap<String, Object>();
//		params.put("memberId", memberId);
//		params.put("offset", Pager.getOffset());
//		params.put("size", Pager.getLimit());
//		if(null != start){
//			params.put("start", start);
//		}
//		if(null != end){
//			params.put("end", end);
//		}
//		
//		List<MemberConsumedRecord> content = memberConsumedRecordMapper.selectByPage(params);
//		long total = memberConsumedRecordMapper.countByPage(params);
//		
//		return new PageImpl<MemberConsumedRecord>(content, pageable, total);
//	}

//	@Transactional(rollbackFor=Exception.class)
//	public MemberConsumedRecord insertRecord(MemberConsumedRecord memberConsumedRecord) {
//	
//		memberConsumedRecordMapper.insertRecord(memberConsumedRecord);
//
//		return memberConsumedRecord;
//	}

//	@Override
//	@Transactional(rollbackFor=Exception.class)
//	public int updateByPrimaryKey(MemberConsumedRecord record) {
//		
//		return memberConsumedRecordMapper.updateByPrimaryKey(record);
//	}

//	public MemberConsumedRecord findOne(Long id) {
//		
//		return memberConsumedRecordMapper.selectByPrimaryKey(id);
//	}

//	@Override
//	public Page<PassengerAccount> consumedRecord(Long memberId,Integer page, Integer limit) {
//		
//		Pageable pageable = new PageRequest(page, limit);
//		
//		Map<String, Object> params = new HashMap<String, Object>();
//		params.put("memberId", memberId);
//		params.put("offset", page*limit);
//		params.put("size", limit);
//		
//		List<MemberConsumedRecord> content = memberConsumedRecordMapper.selectByPage(params);
//		long total = memberConsumedRecordMapper.countByPage(params);
//		
//		return new PageImpl<MemberConsumedRecord>(content, pageable, total);
//	}

//	@Override
//	public List<MemberConsumedRecord> findAll() {
//		
//		return memberConsumedRecordMapper.selectAll();
//	}

}